package com.twxm.breed.service;

import com.twxm.breed.entity.User;
import com.twxm.breed.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public void setNameAndId(User user){
        userMapper.insertNameAndId(user);
    }

    public String selectNameById(String userId){return userMapper.selectNameById(userId);}
}
